-- GENERATED SPELL FOR [Tarren Mill Guardsman] --


function spell0_18092(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18092', 5337, 1)
end

function spell1_18092(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18092', 541, 1)
end

function Sorts_18092(pUnit, Event)
local choix_sorts_18092 = math.random(0, 1)
if choix_sorts_18092 == 0 then
pUnit:RegisterEvent('spell0_18092', 1, 1)
end
if choix_sorts_18092 == 1 then
pUnit:RegisterEvent('spell1_18092', 1, 1)
end
end

function mob18092_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18092', math.random(1500, 3000), 1)
end

function mob18092_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18092_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18092_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18092, 1, 'mob18092_Action')
RegisterUnitEvent(18092, 2, 'mob18092_Leave')
RegisterUnitEvent(18092, 3, 'mob18092_Kill')
RegisterUnitEvent(18092, 4, 'mob18092_Die')
